package org.exception;
/**
 * 自定义异常：将异常信息打印到控制台
 * @author Administrator
 *
 */
public class MYPOIException extends Exception {
	private static final long serialVersionUID = 1L;
	public static int MYPOIEXCEPIONTYPE_PRINTLN = 1;
	
	public MYPOIException(){}
	
    public MYPOIException(String msg){
    	System.out.println(msg);
    }
    
    public MYPOIException(String msg,int exceptionDealType){
    	if(exceptionDealType == MYPOIException.MYPOIEXCEPIONTYPE_PRINTLN){
    		System.out.println(msg);
    	}
    }
}
